package com.raymond.thread.manager.bean;

import com.raymond.thread.manager.circulation.BaseCirculationThread;
import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * 线程循环管理bean
 *
 * @author :  raymond
 * @version :  V1.0
 * @date :  2020-09-12 17:01
 */
@EqualsAndHashCode(callSuper = true)
@Getter
public class CirculationThreadDefinition extends BaseThreadDefinition {

    public CirculationThreadDefinition(Class<? extends BaseCirculationThread> baseThread, String threadPoolName, String threadName, int threadNum) {
       this(baseThread, threadPoolName, threadName, threadNum, 50);
    }

    public CirculationThreadDefinition(Class<? extends BaseCirculationThread> baseThread, String threadPoolName, String threadName, int threadNum, int order) {
        super(baseThread, threadPoolName, threadName, order);
        this.threadNum = threadNum;
    }

    /**线程个数**/
    private int threadNum;

}
